﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005FF RID: 1535
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GameMiracleInfo : IMessage<GameMiracleInfo>, IMessage, IEquatable<GameMiracleInfo>, IDeepCloneable<GameMiracleInfo>, IBufferMessage
	{
		// Token: 0x170013C1 RID: 5057
		// (get) Token: 0x06004526 RID: 17702 RVA: 0x000BD7A9 File Offset: 0x000BB9A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GameMiracleInfo> Parser
		{
			get
			{
				return GameMiracleInfo._parser;
			}
		}

		// Token: 0x170013C2 RID: 5058
		// (get) Token: 0x06004527 RID: 17703 RVA: 0x000BD7B0 File Offset: 0x000BB9B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GameMiracleInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170013C3 RID: 5059
		// (get) Token: 0x06004528 RID: 17704 RVA: 0x000BD7C2 File Offset: 0x000BB9C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GameMiracleInfo.Descriptor;
			}
		}

		// Token: 0x06004529 RID: 17705 RVA: 0x000BD7C9 File Offset: 0x000BB9C9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GameMiracleInfo()
		{
		}

		// Token: 0x0600452A RID: 17706 RVA: 0x000BD7D1 File Offset: 0x000BB9D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GameMiracleInfo(GameMiracleInfo other) : this()
		{
			this.gameMiracleInfo_ = ((other.gameMiracleInfo_ != null) ? other.gameMiracleInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600452B RID: 17707 RVA: 0x000BD806 File Offset: 0x000BBA06
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GameMiracleInfo Clone()
		{
			return new GameMiracleInfo(this);
		}

		// Token: 0x170013C4 RID: 5060
		// (get) Token: 0x0600452C RID: 17708 RVA: 0x000BD80E File Offset: 0x000BBA0E
		// (set) Token: 0x0600452D RID: 17709 RVA: 0x000BD816 File Offset: 0x000BBA16
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMiracleInfo GameMiracleInfo_
		{
			get
			{
				return this.gameMiracleInfo_;
			}
			set
			{
				this.gameMiracleInfo_ = value;
			}
		}

		// Token: 0x0600452E RID: 17710 RVA: 0x000BD81F File Offset: 0x000BBA1F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GameMiracleInfo);
		}

		// Token: 0x0600452F RID: 17711 RVA: 0x000BD82D File Offset: 0x000BBA2D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GameMiracleInfo other)
		{
			return other != null && (other == this || (object.Equals(this.GameMiracleInfo_, other.GameMiracleInfo_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004530 RID: 17712 RVA: 0x000BD860 File Offset: 0x000BBA60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.gameMiracleInfo_ != null)
			{
				num ^= this.GameMiracleInfo_.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004531 RID: 17713 RVA: 0x000BD89C File Offset: 0x000BBA9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004532 RID: 17714 RVA: 0x000BD8A4 File Offset: 0x000BBAA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004533 RID: 17715 RVA: 0x000BD8AD File Offset: 0x000BBAAD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.gameMiracleInfo_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.GameMiracleInfo_);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004534 RID: 17716 RVA: 0x000BD8E0 File Offset: 0x000BBAE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.gameMiracleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.GameMiracleInfo_);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004535 RID: 17717 RVA: 0x000BD920 File Offset: 0x000BBB20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GameMiracleInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.gameMiracleInfo_ != null)
			{
				if (this.gameMiracleInfo_ == null)
				{
					this.GameMiracleInfo_ = new RogueMiracleInfo();
				}
				this.GameMiracleInfo_.MergeFrom(other.GameMiracleInfo_);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004536 RID: 17718 RVA: 0x000BD974 File Offset: 0x000BBB74
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004537 RID: 17719 RVA: 0x000BD980 File Offset: 0x000BBB80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 50U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					if (this.gameMiracleInfo_ == null)
					{
						this.GameMiracleInfo_ = new RogueMiracleInfo();
					}
					input.ReadMessage(this.GameMiracleInfo_);
				}
			}
		}

		// Token: 0x04001B4B RID: 6987
		private static readonly MessageParser<GameMiracleInfo> _parser = new MessageParser<GameMiracleInfo>(() => new GameMiracleInfo());

		// Token: 0x04001B4C RID: 6988
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001B4D RID: 6989
		public const int GameMiracleInfo_FieldNumber = 6;

		// Token: 0x04001B4E RID: 6990
		private RogueMiracleInfo gameMiracleInfo_;
	}
}
